<template>
  <div style="text-align:center">
    <div id="programme" style="width:790px;margin:auto;" ref="print">
      <colorTemplate ref="colorTemplate"></colorTemplate>
      <!-- <colorTemplate42 ref="colorTemplate"></colorTemplate42> -->
    </div>
    <div class="error500-btn-con ">
      <el-button @click="myprint" style="width: 200px;margin-top:10px " type='primary'>打印</el-button>
      <el-button @click="save" style="width: 200px;margin-top:10px " type='primary'>保存</el-button>
    </div>
  </div>
</template>
<script>
import colorTemplate from './colorTemplate'

import colorTemplate42 from './colorTemplate42'
import { getObj } from '@/api/cust/health/color'
import html2canvas from 'html2canvas'
export default {
  name: 'xcgct',
  components: {
    colorTemplate,
    colorTemplate42
  },
  data() {
    return {
      grjbxxid: '',
      jktjid: '',
      sfzh: '',
      data: {}
    }
  },
  created() {
    this.grjbxxid = this.$route.query.grjbxxid
    this.jktjid = this.$route.query.id
    this.sfzh = this.$route.query.sfzh
    this.getObj()
  },
  mounted() {},
  methods: {
    getObj() {},
    save() {
      this.$refs.colorTemplate.save()
    },
    myprint() {
      this.$print(this.$refs.print)
    }
  },
  computed: {},
  props: []
}
</script>
<style>
td {
  padding-left: 10px;
}
</style>
